home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/pwd/c/RCS/fgetpwent,v $
- * $Date: 1996/10/30 21:57:16 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: fgetpwent,v $
- * Revision 1.1 1996/10/30 21:57:16 unixlib
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: fgetpwent,v 1.1 1996/10/30 21:57:16 unixlib Rel $";
-
- /* pwd.c.fgetpwent. Read a password file entry.
-
- Written by Nick Burrett, 13 October 1996. */
-
- #include <stddef.h>
- #include <stdio.h>
- #include <pwd.h>
-
- /* Read one entry from the given stream. */
- struct passwd *fgetpwent (FILE *stream)
- {
- static struct passwd pwd;
-
- if (stream == NULL)
- return NULL;
-
- return __pwdread (stream, &pwd);
- }
-